package com.nexus.core.sys.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.nexus.core.query.annotation.QueryCondition;
import com.nexus.core.query.annotation.QueryType;
import com.nexus.core.service.dto.BaseDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 角色菜单
 *
 * @Date 2025/7/28 15:08
 * @Author Administrator
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class SysRoleMenuDTO extends BaseDTO {


    /**
     * 系统角色
     */
    @ExcelProperty("系统角色")
    @QueryCondition(tableField = "role.id", type = QueryType.EQ)
    private SysRoleDTO role;
    /**
     * 系统菜单
     */
    @ExcelProperty("系统菜单")
    @QueryCondition(tableField = "menu.id", type = QueryType.EQ)
    private SysMenuDTO menu;
    /**
     * 状态
     */
    @ExcelProperty("状态")
    @QueryCondition(tableField = "status", type = QueryType.EQ)
    private String status;
    /**
     * 组织机构
     */
    @ExcelProperty("组织机构")
    @QueryCondition(tableField = "org.id", type = QueryType.EQ)
    private SysOrgDTO org;
}